package com.hospital.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.configure.Result;
import com.hospital.entity.Registered;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author WuLiTing
 * @since 2021-03-28
 */
public interface RegisteredMapper extends BaseMapper<Registered> {

    Page<Map> queryRegisteredList(Page page, @Param("param") Map map);

    Page<Registered> queryRegisteredByPage(Page page, @Param("registered") Registered registered);

    int queryRegisteredCount(@Param("doctorId") String doctorId, @Param("registeredDate") Date registeredDate);

    int updateStatus(Registered registered);
}
